package gui;

import java.awt.Component;

import javax.swing.Box;
import javax.swing.BoxLayout;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;

public class LoanInfoPanelModified extends JPanel {

	protected JButton confirmButton;

	protected ValueEntryPanel amountField;

	protected ValueEntryPanel passwordField;

	public LoanInfoPanelModified() {

		setLayout(new BoxLayout(this, BoxLayout.PAGE_AXIS));

		// add a label with a prompt to enter the new financial info
		JLabel prompt = new JLabel("Confirm Loan Application");
		prompt.setMaximumSize(prompt.getPreferredSize());
		add(prompt);
		prompt.setAlignmentX(Component.LEFT_ALIGNMENT);
		add(Box.createVerticalGlue());

		// add a txtbox with the field for the entry of the amount requested for
		// the loan
		amountField = new ValueEntryPanel("Amount Requested:");
		add(amountField);
		add(amountField);
		amountField.setAlignmentX(Component.LEFT_ALIGNMENT);
		add(Box.createVerticalGlue());

		// add a txtbox with the field for the entry of the student's login
		// password
		passwordField = new ValueEntryPanel("Password:");
		add(passwordField);
		add(passwordField);
		passwordField.setAlignmentX(Component.LEFT_ALIGNMENT);
		add(Box.createVerticalGlue());

	}

	private static final long serialVersionUID = 1L;

}
